﻿using CommunityToolkitMvvmDemo.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunityToolkitMvvmDemo.Servers
{
    internal class ServiceLocator
    {
        public ValidationRuleViewModel ValidationRuleViewModel => App.Current.Services.GetService<ValidationRuleViewModel>();
       
        public ConverterViewModel ConverterViewModel => App.Current.Services.GetService<ConverterViewModel>();
        public RegisterViewModel RegisterViewModel => App.Current.Services.GetService<RegisterViewModel>();

        public HandyControlViewModel HandyControlViewModel => App.Current.Services.GetService<HandyControlViewModel>();

        public LoginViewModel LoginViewModel => App.Current.Services.GetService<LoginViewModel>();
        public MainViewModel MainViewModel => App.Current.Services.GetService<MainViewModel>();
        public HomePageViewModel HomePageViewModel => App.Current.Services.GetService<HomePageViewModel>();
        public CourseCenterViewModel CourseCenterViewModel => App.Current.Services.GetService<CourseCenterViewModel>();

    }

}
